<template>
  <div class="com-popover" v-click-outside="onClickOutside">
    <slot></slot>
  </div>
</template>
<script lang="ts" setup>
const emit = defineEmits(['close']);
const onClickOutside = (_event: any) => {
  emit('close');
};
</script>

<style lang="scss" scoped>
.com-popover {
  width: 302px;
  min-height: 231px;
  background: #001528;
  border-radius: 4px;
  font-size: 14px;
  color: #ffffff;

  box-sizing: border-box;
  padding: 13px 0 24px;
  justify-content: space-between;
  align-items: center;

  z-index: 999;
}
</style>
